@prefix-cls: ~'inbiz-tags-view';

.@{prefix-cls} {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: var(--inbiz-font-size-base);

  &-btn-box {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    margin-left: 10px;
    color: #999;
    font-size: 12px;
    background: #fff;
    border: 1px solid #ddd;
  }

  &-btn {
    &:hover {
      color: var(--inbiz-color-primary);
    }
  }

  &-container {
    display: flex;
    flex-grow: 1;
    width: 0;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }

    >ul {
      display: flex;
      flex-wrap: nowrap;
      height: 100%;
      margin: 0;
      padding: 0;

      &>li.@{prefix-cls}-li {
        &.active {
          border-radius: 4px 4px 0 0;

          .@{prefix-cls}-tagname {
            color: var(--inbiz-color-primary);
          }
        }

        &:hover {
          .@{prefix-cls}-tagname {
            color: var(--inbiz-color-primary);
            font-size: var(--inbiz-font-size-base);
          }
        }

        .@{prefix-cls}-icon {
          color: #aaa;
          font-size: 14px;

          &:hover {
            color: var(--inbiz-color-primary);
            cursor: pointer;
          }
        }
      }
    }
  }

  &-tool {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 8px 0 8px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    cursor: pointer;

    &:hover {
      color: var(--inbiz-color-primary);
      border-color: var(--inbiz-color-primary);
    }

    &-btn {
      color: #999;
      font-size: 12px;

      &:hover {
        color: var(--inbiz-color-primary);
      }
    }
  }
}

.@{prefix-cls}-li {
  z-index: 9;
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 15px;
  color: var(--inbiz-color-text);
  line-height: 100%;
  list-style: none;
  user-select: none;
  cursor: pointer;

  .@{prefix-cls}-tagname {
    display: inline-block;
    max-width: 122px;
    margin-right: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: var(--inbiz-font-size-base);
  }
}

.@{prefix-cls}-Interval {
  position: relative;
  right: 15px;
  color: var(--inbiz-color-text);
  opacity: 0.4;
}